<template>
  <div class="my-order">
    <div class="my-order-top">
      <p class="my-order-left">
        我的订单
      </p>
      <p class="my-order-right">
        全部订单
        <i class="iconfont my-order-icon">&#xe74f;</i>
      </p>
    </div>
    <div class="my-order-bom">
      <div class="my-order-bom-icon">
        <p class="iconfont myIcon">&#xe607;</p>
        <p class="my-order-name">待付款</p>
      </div>
      <div class="my-order-bom-icon">
        <p class="iconfont myIcon">&#xe62e;</p>
        <p class="my-order-name">待收货</p>
      </div>
      <div class="my-order-bom-icon">
        <p class="iconfont myIcon">&#xe6a6;</p>
        <p class="my-order-name">待评价</p>
      </div>
      <div class="my-order-bom-icon">
        <p class="iconfont myIcon">&#xe69c;</p>
        <p class="my-order-name">退货/退款</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="less">
// 产生的浮动还没解决
  .my-order{
    width: 100%;
    height: 2rem;
    background: white;
    border-top: .09375rem solid #eee;
    border-bottom: .09375rem solid #eee;
    .my-order-top{
      width: 100%;
      height: .9rem;
      line-height: .9rem;
      font-size: .26rem;
      border-bottom: 1px solid #eee;
      .my-order-left{
        float: left;
        margin-left: .2rem;
      }
      .my-order-right{
        float: right;
        margin-right: .2rem;
        .my-order-icon{
          float: right;
          display: block;
          margin-top: .02rem;
        }
      }
    }
    .my-order-bom{
      width: 100%;
      height: 1.1rem;
      display: flex;
      .my-order-bom-icon{
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-right: 1px solid #ccc;
        .myIcon{
          color: #2796d5;
          font-size: .42rem;
        }
        .my-order-name{
          font-size: .23rem;
          margin-top: .14rem;
        }
      }
      .my-order-bom-icon:last-child{
        border-right: none;
      }
    }
  }
  .clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
        content: "";
        display: block;
        height: 0;
        clear:both;
        visibility: hidden;
    }
    .clearfix{
        *zoom: 1;/*ie6清除浮动的方式 *号只有IE6-IE7执行，其他浏览器不执行*/
    }
</style>

